@extends('layout.index')

@section('title', '轮播图管理')

@section('content')
<div class="mws-panel grid_8">
	<div class="mws-panel-header">
    	<span>轮播图修改</span>
    </div>
    @if (count($errors) > 0)
    <div class="alert alert-danger">
        <ul>
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
    @endif
    <div class="mws-panel-body no-padding">
    	<form class="mws-form" action="/admin/play/update" method="post" enctype="multipart/form-data">
    		<div class="mws-form-inline">
                <div class="mws-form-row">
                    <label class="mws-form-label">轮播图片</label>
                    <div class="mws-form-item">
                        <input type="file" name="img" value="{{$img}}" style="width:200px;height:40px;">
                    </div>
                </div>
    		</div>
            <input type="hidden" name="id" value="{{$id}}">
            {{csrf_field()}}
    		<div class="mws-button-row">
    			<input type="submit" value="修改" class="btn btn-danger">
    			<input type="reset" value="重置" class="btn ">
    		</div>
    	</form>
    </div>    	
</div>
@endsection